package wq.gdky005.app;

import wq.gdky005.util.UsualUtil;

import android.app.Application;
import android.util.DisplayMetrics;

/**
 * 程序启动后，初始化数据
 * @author wangqing
 * 2013-5-24
 */
public class MainApplication extends Application {
	
	/** 变量都存放到这个里面  */
	
	/** 获取屏幕的宽和高 */
	public static int screenHight = 0;
	public static int screenWidth = 0;
	public static int screenDensity;

	@Override
	public void onCreate() {
		super.onCreate();
		DisplayMetrics dm = UsualUtil.getAppWidthAndHeight(this);
		screenHight = dm.heightPixels;
		screenWidth = dm.widthPixels;
		screenDensity = dm.densityDpi;
	}
}
